def minmax(a):
    a=sorted(a)
    maxe=max(a)
    mine=min(a)
    zhoneg=a[int(len(a)/2)]
    return maxe,zhoneg,mine
a = [int(i)for i in input().split()]
maxer,zhong,miner=minmax(a)
print(maxer," ",zhong," ",miner)